package ooday02;

public class Doctor extends Person{//医生
    String title;//职称
    Doctor(int age,String name,String address,String title){
        super(name,age,address);
        this.title=title;
    }
    void cut(){//切
        System.out.println(name+"正在做手术");
    }
    void sayHi(){
        System.out.println("大家好，我叫"+name+"今年"+age+"岁了，家住"+address+"职称是"+title);
    }
}
